import request from '@/utils/request'

// 查询患者回访列表
export function listFollowup(query) {
    return request({
        url: '/keyan/followup/list',
        method: 'get',
        params: query
    })
}

// 查询患者回访详细
export function getFollowup(id) {
    return request({
        url: '/keyan/followup/' + id,
        method: 'get'
    })
}

// 新增患者回访
export function addFollowup(data) {
    return request({
        url: '/keyan/followup',
        method: 'post',
        data: data
    })
}

// 修改患者回访
export function updateFollowup(data) {
    return request({
        url: '/keyan/followup',
        method: 'put',
        data: data
    })
}

// 删除患者回访
export function delFollowup(id) {
    return request({
        url: '/keyan/followup/' + id,
        method: 'delete'
    })
}
